package com.nuc.controller;

import com.nuc.pojo.Question;
import com.nuc.service.QueService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Zhang Chao
 * @Date 2021/5/12 10:59
 * @Version 1.0
 */
@Api(value = "问卷controller",tags = {"问卷接口"})
@RestController
@RequestMapping("/que")
public class QueController {

    @Resource
    QueService queService;

    @ApiOperation("问卷题目")
    @GetMapping("/allQues")
    public List<Question> getAllQue(){
        return queService.getAllQue();
    }
}
